package com.winit.issue.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "matrix_issue_relation")
@IdClass(IssueRelationId.class)
@DynamicUpdate
@DynamicInsert
public class IssueRelation implements Serializable {
    @Id
    @Column(name = "issue_id")
    private String issueId;
    @Id
    @Column(name = "relation_id")
    private String relationId;
    @Column(name = "type")
    private String type;    //类型

    public String getIssueId() {
        return issueId;
    }

    public void setIssueId(String issueId) {
        this.issueId = issueId;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
